package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Datafile {
    @TableId(type = IdType.AUTO)
    private Integer fileId;
    private Integer filegroupId;
    private String author;
    private String relativepath;
    private String absolutepath;
    private String oldname;
    private String newname;
    private String title;
    private String description;
    private String filesize;
    private String browse;
    private String type;
    private String price;  //单价

    @TableLogic //逻辑删除注解
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private String fgname;
    @TableField(exist = false)
    private Integer downup;            //下载量
    @TableField(exist = false)
    private Integer commentsNum;       //文章评论量
    @TableField(exist = false)
    private Integer average;           //平均分
    @TableField(exist = false)
    private String sumprice;              //总收入
    @TableField(exist = false)
    private String gshow;              //显示
}
